AESizeOfNthItem
AESizeOfNthItem Descriptor type of descriptor record in descriptor list
#include <AppleEvents.h> Apple Event Manager
OSErr AESizeOfNthItem( theAEDescList, index, typeCode, dataSize );
AEDescList * theAEDescList ; descriptor list containing descriptor record
long index ; position of record in the list
DescType * typeCode ; descriptor type of descriptor record
Size * dataSize ; points to size of descriptor record
returns Error Code; 0 = no error
The AESizeOfNthItem function returns the size and descriptor type of a
descriptor record in a descriptor list.
The parameter theAEDescList is the descriptor list containing the
descriptor record.
The index parameter is the position of the descriptor record in the list (for
example, 2 specifies the second descriptor record).
The AESizeOfNthItem function returns the descriptor type of the
descriptor record in the typeCode parameter.
This function returns the length, in bytes, of the data contained in the
descriptor record in the dataSize parameter.
Result codes
noErr (0) No error
errAEDescNotFound (-1701) Descriptor record was not found
errAEReplyNotArrived (-1718) Reply has not yet arrived